package com.example.springbootdemocousumer.controller;

import com.example.springbootdemocousumer.service.CousumerService;
import com.example.springbootdemoentity.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CousumerController {

    @Autowired
    private CousumerService cousumerService;

    @RequestMapping("/getProduct")
    public Product getProduct() {
        return cousumerService.getProduct();
    }

}
